package com.glorysoft.lipuxinpda.utils

import com.glorysoft.lipuxinpda.base.App
import com.pda.platform.ui.ui_pdaplatform.callback.FreeUI_EntityCallBack
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_NetUtils
import java.util.HashMap

/**
 * FileName: NetUtils
 * Author: XJH
 * Date: 2021/4/8 17:11
 * Description:
 * History:
 */
class NetUtils {
    fun <T> requestPostNet(method: String, tag: Any, map: MutableMap<String, String>, callBack: FreeUI_EntityCallBack<T>?) {
        map["MACHINENAME"] = App.IMEI_ID!!
        FreeApi_NetUtils.requestPostNet(method, tag, map, callBack)
    }

    fun <T> requestPostNetNews(method: String, tag: Any, map: HashMap<String, String>, callBack: FreeUI_EntityCallBack<T>?) {
        map["MACHINENAME"] = App.IMEI_ID!!
        FreeApi_NetUtils.requestPostNet(method, tag, map, callBack)
    }
}